package com.example.helloworld;

/**
 * ClassName: StringTools
 * Package: com.example.helloworld
 * Description:
 *
 * @Author guotingting
 * @Create 2025/4/22 3:15 PM
 * @Version 1.0
 */
public class StringTools {
    String concat(char separator, String... args) {
        String str = "";
        for (int i = 0; i < args.length; i++) {
            if (i == 0) {
                str += args[i];
            } else {
                str += separator + args[i];
            }
        }
        return str;
    }
}
